IsSameAs
TheIsSameAs
method returns a Boolean value that indicates whether this shape is identical to the specified shape.
ODBoolean IsSameAs (in ODShape compareShape);
compareShape
- A reference to the shape to be compared with this shape.
- return value
kODTrue
if the shapes are equivalent, otherwisekODFalse
.DISCUSSION
If both shapes have polygonal representations, they are equivalent if they consist of the same contours. The order of the contours does not matter. Each of the corresponding contours in the two polygons must have their vertices listed in the same direction (clockwise or counterclockwise).If this shape is described only by a platform shape (such as a region), then the platform graphics system is used to determine equality; typically, the
compareShape
parameter must be a platform shape of the same type.EXCEPTIONS
kODErrOutOfMemory
- There is not enough memory to compare the two shapes.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help